@page "/lanReceiver"
@namespace SwashbucklerDiary.Rcl.Pages
@inherits ImportantComponentBase

<MyAppBar Title="@(I18n.T("Export.Receive.Name"))"
          OnClick="NavigateToBack">
</MyAppBar>

<ScrollContainer>
    @if (LANReceiverService.IsMulticasting)
    {
        <MRow Style="margin-top:20vh;"
              AlignContent="@AlignContentTypes.Center"
              Justify="@JustifyTypes.Center">
            <MCol Class="text-subtitle-1 text-center"
                  Cols="12">
                @(I18n.T("lanReceiver.Waiting for connection"))
            </MCol>
            <MCol Cols="6">
                <MProgressLinear Indeterminate="true"
                                 Rounded="true"
                                 Height="6"
                                 Color="grey">
                </MProgressLinear>
            </MCol>
        </MRow>
    }

</ScrollContainer>

<TransferDialog @bind-Visible="showTransferDialog"
                Title="@(I18n.T(transferDialogTitle))"
                Ps="ps"
                Bytes="bytes"
                TotalBytes="totalBytes"
                OnCancel="CancelReceive">
</TransferDialog>
